package com.dmlll.service.impl;

import com.dmlll.dao.DwellMessageMapper;
import com.dmlll.pojo.DwellMessage;
import com.dmlll.service.DwellMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DwellMessageServiceImpl implements DwellMessageService{

    @Autowired
    private DwellMessageMapper dwellMessageMapper;



    @Override
    public int insertDwellMessage(DwellMessage dwellMessage) {
        return dwellMessageMapper.insertDwellMessage(dwellMessage);
    }

    @Override
    public DwellMessage findDwellMessageById(Integer id) {
        return dwellMessageMapper.selectByPrimaryKey(id);
    }

    @Override
    public void updateDwellMessage(DwellMessage dwellMessage) {
        dwellMessageMapper.updateByPrimaryKeySelective(dwellMessage);
    }
}
